package com.坦克大战.Tank_1;

import javax.swing.*;

@SuppressWarnings("all")
public class TankGameMain extends JFrame {
    public static void main(String[] args) {
        TankGameMain tankGameMain = new TankGameMain();
    }

    MyPanel panel = null;

    public TankGameMain() {
        this.panel = new MyPanel();
        this.add(panel);
        this.setSize(1000, 750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);

        this.addKeyListener(panel);

    }
}
